package com.example.administrator.reader.utils;

import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;

/**
 * Created by Administrator on 2016-09-04.
 */
public class ViewUtils {
    public static void remove(View v){
        ViewParent parent = v.getParent();
        if (parent instanceof ViewGroup){
            ((ViewGroup) parent).removeView(v);
        }
    }
}
